package com.TIEmulator;

public class CheckBoxifiedText
  implements Comparable<CheckBoxifiedText>
{
  private boolean mChecked;
  private String mText = "";

  public CheckBoxifiedText(String paramString, boolean paramBoolean)
  {
    this.mText = paramString;
    this.mChecked = paramBoolean;
  }

  public int compareTo(CheckBoxifiedText paramCheckBoxifiedText)
  {
    if (this.mText != null)
      return this.mText.compareTo(paramCheckBoxifiedText.getText());
    throw new IllegalArgumentException();
  }

  public boolean getChecked()
  {
    return this.mChecked;
  }

  public String getText()
  {
    return this.mText;
  }

  public void setChecked(boolean paramBoolean)
  {
    this.mChecked = paramBoolean;
  }

  public void setText(String paramString)
  {
    this.mText = paramString;
  }
}
